(abort "Incorrect OS version (software requires OS 37 or better )!")
)
)
; error handling
(onerror
(if (> @ioerr 0)
(
(message
("An error has occurred during installation. Please check the log file to understand the error.")
)
)
)
(exit (quiet))
)
(set #installmode
(askbool
(prompt "\nChoose the installation mode:")
(help @askbool-help)
(choices
"Install"
"Uninstall"
)
(default 1)
)
)
(if (= #installmode 1)
; normal installation
(
(welcome)
; --- insert your code below ---
(set @CDty-dest
(askdir
(prompt "Please choose the installation path for the DRemind-Commodity:\n('SYS:WBStartup' is recommend if you want to start DRemind at startup time.)")
(help "If you specify 'SYS:WBStartup' the system will start DRemind at startup for you.\nIf you choose to install it to an other dir you will have to start it manually.")
(default "SYS:WBStartup/")
)
)
(COMPLETE 10)
(set @Prefs-dest
(askdir
(prompt "Please choose the installation path for the DRemind-Preferences program:\n('SYS:Prefs' is recommend if you want DRemind to be able to start the preferences program.)")
(help "If you choose to install it to an other dir you will have to call DRemindPrefs yourself every time you want to change the prefs.")
(default "SYS:Prefs/")
)
)
(COMPLETE 20)
(copyfiles
(source "DRemind/DRemind")
(dest @CDty-dest)
(infos)
(optional "oknodelete" "force" "askuser")
)
(COMPLETE 30)
(copyfiles
(source "DRemind/DRemindPrefs")
(dest @Prefs-dest)
(infos)
(optional "oknodelete" "force" "askuser")
)
(COMPLETE 40)
(set image_dir
(askdir
(prompt "Please choose the directory for the configuration file: ('ENVARC' = default)\nNote: If you set any other destination than ENVARC: don't forget to change the dir in DRemindPrefs as well!")
(help @askdir-help)
(default "ENVARC:")
)
)
(COMPLETE 50)
; uncomment if you want to show a picture of the available images